package cn.iocoder.springboot.lab03.kafkademo.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2023/9/30 0:30
 */
@Component
@Slf4j
public class CustomEventListenerService implements ApplicationListener<CustomEvent> {
    @Override
    public void onApplicationEvent(CustomEvent event) {
        log.info("[CustomEventListenerService]监听器接受消息：" + event.getMessage());
    }
}
